package priv.yiyuan.example.design.pay01;

/**
 * PayPal支付策略
 *
 * @author YiYuan
 * @data 2025/8/8
 * @apoNote
 */
public class PayPalPayment implements PaymentStrategy {

    private String email;

    public PayPalPayment(String email) {
        this.email = email;
    }

    @Override
    public void pay(double amount) {
        System.out.println("Paid " + amount + " using PayPal: " + email);
    }
}
